<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="json" uri="http://www.atg.com/taglibs/json" %> 

<%

HttpSession s;

ValueStack vs=(ValueStack)request.getAttribute("struts.valueStack");
String openId=(String)vs.findValue("openId");

s=MySessionContext.getSession(openId);
if(s==null){	
	s= request.getSession(); 
	MySessionContext.AddSession(openId ,s);	
}	


String json_msg=(String)vs.findValue("json_msg");


%>

<!doctype html>
<html lang="zh-hans">
<%@ include file="_header.jsp" %>


<script>
var json_msg=<%=json_msg%>;

//默认显示模态框
$(function () { 
//alert(client_json[0].clientBase.name);
//$('#myModal').modal('show');
});

// 获取点击的行数
function msg_do(a){
i=a.rowIndex-1;
alert(a);
//jcb=client_json[i].clientBase;
//jce=client_json[i].clientExtend;
//alert(i);
//alert(client_json[i].clientBase);

//$('#client-base').html(jcb);
//$('#client-extend').html(jce);
$('#myModal').modal('show');
//$('#cid').val(client_json[i].cid);
}






</script>
<body>    
<%@ include file="_daohang.jsp" %> 	   


<!-- 隐藏数据域 -->
<form class="form-group" action="msg_do">
<div class="input-group hide">
<input type="text" class="form-control" id="openId" name="openId" placeholder="openId" value="<s:property value="openId"/>">
<input type="text" class="form-control" id="msid" name="msid" placeholder="msid" value="">
<input type="text" class="form-control" id="state" name="state" placeholder="state" value="">
</div>
</form>



<div class="row"><div class="jumbotron">
<!--<p><a class="btn btn-primary btn-sm" href="#" role="button">轻松工作&nbsp;&nbsp;&nbsp;&nbsp;快乐生活 :&nbsp;)</a></p>-->
<div class="panel-group" id="accordion">
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#collapseOne">
系统公告<span class="badge mybadge">0</span>
</a></h4>
</div>
<div id="collapseOne" class="panel-collapse collapse in">
<div class="panel-body">
<!--  
<ul>
    <li>05-10 升级通知</li>
    <li>05-10 功能新增</li>
    <li><a href="javascript:void(0);" onclick="msg_do('sid')">测试模态</a></li>
</ul>
-->
</div>
</div>
</div><!-- panel panel-default -->
  
  
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" 
href="#collapseTwo">
待办事项<span class="badge mybadge">0</span>
</a>
</h4>
</div>
<div id="collapseTwo" class="panel-collapse collapse">
<div class="panel-body">
<!--  
<ul>
    <li><a href="javascript:void(0);" onclick="msg_do('a#20')">测试模态</a></li>
    <li>05-10 aaaaaa</li>
    <li>05-10 aaaaaa</li>
    <li>05-10 aaaaaa</li>
    <li>......</li>
</ul>
-->
</div>
</div>
</div><!-- panel panel-default -->
  
  
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" 
href="#collapseThree">
客户推荐<span class="badge mybadge">0</span>
</a>
</h4>
</div>
<div id="collapseThree" class="panel-collapse collapse">
<div class="panel-body">

</div>
</div>
</div><!-- panel panel-default -->
  

  
</div>



<!-- 模态框 start -->
<!-- Button trigger modal 
<button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">
Modal Test
</button>-->

<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title" id="myModalLabel">消息处理</h4>
</div>
<div class="modal-body">
...
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
<button type="button" class="btn btn-primary">处理</button>
</div>
</div>
</div>
</div>  </div>                                    
<!-- 模态框 end -->         
                        


 
 
</div>   
    
<!-- 快捷方式 -->    
<div class="panel-heading">
<div class="row">
	<div class="col-xs-3"></div>
	<div class="col-xs-3"></div>
	<div class="col-xs-3"><a class="btn btn-default" href="kh_do?openId=<s:property value="openId"/>" role="button"><img class="home" src="images/work.png"></a></div>
	<div class="col-xs-3"><a class="btn btn-default" href="daka?openId=<s:property value="openId"/>" role="button"><img class="home" src="images/dk.png"></a></div>
    
     


	
</div><!-- pannel-heading -->    
        




</body>
</html>